/*************************************************************
 * Title: ICustomerService.java
 * Description: 
 * Author: Huang Shaobin
 * Email: shaobin.software@gmail.com
 * CreateTime: Feb 25, 2013 2:21:00 PM
 * Description:
 ************************************************************/
package snow.biz.selling.service;

import java.util.List;

import snow.biz.basic.service.IBaseService;
import snow.biz.selling.model.Customer;
import snow.core.domain.Pagination;
import snow.core.exceptions.BusinessException;
import snow.core.persistence.Conditions;
import snow.core.persistence.Order;

/**
 * 客户相关的服务接口
 */
public interface ICustomerService extends IBaseService {

	Integer createCustomerFrom(Customer customer) throws BusinessException;

	void modifyCustomerFrom(Customer customer) throws BusinessException;

	void removeCustomerFrom(Customer customer) throws BusinessException;

	Customer searchCustomerFrom(Integer id) throws BusinessException;

	Pagination searchCustomersForPagingFrom(Conditions conditions, List<Order> orders, int start, int limit) throws BusinessException;

	List<Customer> searchCustomersFrom(Conditions conditions, List<Order> orders, int start, int limit) throws BusinessException;
}
